<%@ page language="java" contentType="text/html; charset=GBK"
    pageEncoding="GBK"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Delivery Management</title>
</head>

<body>
	<form action="transaction.do" name="TransactionForm" method="post">
		<table width="100%" cellpadding="5" cellspacing="1" border="1">
			<tr>
				<td colspan="4" align="center"><b>View transaction details</b></td>
			</tr>
			<tr>
				<td>transaction code</td>
				<td><b>${TransactionForm.transCode }</b></td>
				<td>transaction status</td>
				<td>${TransactionForm.transStatus }</td>
			</tr>
			<tr>
				<td>customer name</td>
				<td>${TransactionForm.customerName }</td>
				<td>customerMobile</td>
				<td>${TransactionForm.customerMobile }</td>
			</tr>
		</table>
		<table width="100%" cellpadding="5" cellspacing="1" border="1">
			<tr>
				<td align="center" colspan="4"><b> purchase products</b></td>
			</tr>
			<tr>
				<td>product code</td>
				<td>product name</td>
				<td>amount of sales</td>
				<td> payment </td>
			</tr>
			<c:forEach items="${col}" var="one">
				<tr>
					<td>${one.productCode }</td>
					<td>${one.productName }</td>
					<td>${one.salesCount }</td>
					<td>${one.payAmount }</td>
				</tr>
			</c:forEach>
		</table>
		<br>
		<table width="100%" cellpadding="5" cellspacing="1">
			<tr>
				<td align="center"><input type="button" name="but" value="close" onclick="window.close()"></td>
			</tr>
		</table>
	</form>
</body>
<script type="text/javascript">
	var fm = TransactionForm;
</script>
</html>